package com.clear.subject.application.controller;


import com.clear.subject.infra.entity.UserInfo;
import com.clear.subject.infra.rpc.UserRpc;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/subject/category")
@Slf4j
public class TestFeginController {

    @Resource
    private UserRpc userRpc;

    @GetMapping("/user/testFegin")
    public void testFegin() {
        UserInfo userInfo = userRpc.getUserInfo("oVGIu6_1zuQ4tfvCLrbj2WRraUTI");
        log.info("TestFeginController.testFegin.userInfo:{}", userInfo);
    }

}
